package cn.mw.cmdb.service;

import cn.mw.cmdb.entity.ModelSpecificationInfo;
import cn.mw.cmdb.param.ExcelExportFieldParam;
import cn.mw.cmdb.param.QuerySpecificationParam;
import cn.mw.cmdb.param.SpecificationExcelImportParam;
import cn.mw.cmdb.param.SpecificationSearchParam;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ModelSpecificationService {
    boolean checkSpecificationName(ModelSpecificationInfo info) throws Exception;

    List<SpecificationExcelImportParam> importSpecificationByExcel(MultipartFile file, HttpServletResponse response) throws IOException;

    int exportSpecificationByExcel(SpecificationSearchParam param, HttpServletRequest request, HttpServletResponse response) throws Exception;

    List<ModelSpecificationInfo> querySpecificationByTempAndBrand(QuerySpecificationParam param) throws Exception;
}
